package com.xiangxiao.rpan.file.consumer;

import com.alibaba.fastjson.JSONObject;
import com.xiangxiao.rpan.file.config.MultipartSupportConfig;
import com.xiangxiao.rpan.file.consumer.callback.SettingsClientCall;
import com.xiangxiao.rpan.file.entity.UpdateViewSetting;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/11/29 15:01
 */
@FeignClient(value = "rpan-settings", fallback = SettingsClientCall.class)
public interface IConsumerSettingsClient {
  @PutMapping("/config/view")
  JSONObject updateViewSetting(@Valid @RequestBody UpdateViewSetting settingRequest);
}
